<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<script type="text/javascript" src="${ctx}/res/js/systemMonitor/SQLMonitor/SQLMonitorDetail.js"></script>
</head>
<body>
	<div class="container">
		<div class="detail-info">
			<h1 class="title">SQL日志详情</h1>
			<table>
				<tr>
					<td class="td_for_label">SQLMONITOR.SQL_ID</td>
					<td class="td_for_input">${entity.sqlId }</td>
				</tr>
				<tr>
					<td class="td_for_label">SQLMONITOR.SQL_CONTENT</td>
					<td style="white-space:pre-line;text-overflow:initial;" class="td_for_input"><div style="max-height:200px;overflow-y:auto;word-break:break-all;"><c:out value="${entity.sqlContent }"/></div></td>
				</tr>
				<tr>
					<td class="td_for_label">SQLMONITOR.EXEC_RESULT</td>
					<c:choose>
						<c:when test="${entity.execResult =='0'}">
							<td class="td_for_input">失败</td>
						</c:when>
						<c:when test="${entity.execResult =='1'}">
							<td class="td_for_input">成功</td>
						</c:when>
					</c:choose>					

				</tr>
				<tr>
					<td class="td_for_label">SQLMONITOR.EXEC_TIME</td>
					<td class="td_for_input"><c:out value="${entity.execTime }"/></td>
				</tr>
				<tr>
					<td class="td_for_label">SQLMONITOR.URL</td>
					<td class="td_for_input"><c:out value="${entity.url }"/></td>
				</tr>
				<tr>
					<td class="td_for_label">SQLMONITOR.SQL_TYPE</td>
					<td class="td_for_input"><c:out value="${entity.sqlType }"/></td>
				</tr>
				<tr>
					<td class="td_for_label">SQLMONITOR.EFFECT_ROWS</td>
					<td class="td_for_input"><c:out value="${entity.effectRows }"/></td>
				</tr>
				<tr>
					<td class="td_for_label">SQLMONITOR.CREATE_TIME</td>
					<td class="td_for_input"><c:out value="${entity.createTime }"/></td>
				</tr>
				<tr>
					<td class="td_for_label">SQLMONITOR.USER_NAME</td>
					<td class="td_for_input"><c:out value="${entity.cnName }(${entity.createUser })"/></td>				 					
				</tr>				
				<!-- 按键显示 -->
				<tr>
					<td style="text-align:center;padding:10px;" colspan="2">
						<div id="btnCancel" class="toolButton">返回</div>
							<!-- 参数隐藏区域 -->
							<form id="submitcurrentpage" method="post" 
							action="${ctx}/systemMonitor/SQLMonitor/SQLMonitorList.do">
								<input type="hidden" name="pageType" value="lastest"/>	
							</form>
					</td>
				</tr>
			</table>
		</div>
	</div>
</body>
</html>